﻿@model GameSchool.Models.TeacherXPAssignViewModel

@{
    ViewBag.Title = "listAssignments";
    Layout = "~/Views/Shared/_LayoutTeacher.cshtml";
}
<div class="mainSectionStuff">
<h2>List of Assignments</h2>
<p id="listAssignment">All assignments that have been handed in in this course:</p>
<ul>
@foreach (var item in Model.listStudentAssignments)
{ 
    <li><span id="listAssignmentStudentName">@item.student.name</span> | @Html.ActionLink(@item.assignment.title, "XPAsignment", "Teacher", new { teacherID = @Model.teacherID, stuID = @item.studentID, assID = @item.assignmentID, courseID = @Model.courseID }, null)</li>
}
</ul>
</div>


@section menu{

    <li>@Html.ActionLink("Courses Overview", "StudentHome", "Student")</li> 
        <li>@Html.ActionLink("Assignments", "listAssignments", "Assignment", new { CID = Model.courseID }, null)</li>
    <li>@Html.ActionLink("Online Exam", "LevelEdit", "Level", new { CID = Model.courseID }, null)</li>
    <li>@Html.ActionLink("Lecture", "ViewLectureStudent", "Lecture")</li>
    <li>@Html.ActionLink("Description", "CourseDescription", "Course", new { CID = Model.courseID }, null)</li>
    <li>@Html.ActionLink("XP/Achievements", "XPAchievement", "Achievement", new { CID = Model.courseID }, null)</li>

}